package com.basic.business.pic.service;

import com.basic.business.pic.domain.TGoodsPic;
import com.basic.business.pic.dto.TGoodsNoImgDto;
import com.basic.common.core.service.IBaseService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 商品主图链接管理Service接口
 *
 * @author zhaoxy_jn@163.com
 */
public interface ITGoodsPicService extends IBaseService<TGoodsPic> {

    /**
     * 导入数据
     * @param file
     * @return
     */
    void importFileData(MultipartFile file);

    /**
     * 获取商品图片链接
     * @param goodsId
     * @return
     */
    String getPicUrl(String goodsId);

    /**
     * 导出无图片商品
     * @return
     */
    List<TGoodsNoImgDto> exportNoImg();
}
